import request from '../common/request.js'

const api = {};


//请求方式必须大写，为了兼容其他应用
//维护管理列表
api.ShowData = params => request.globalRequest("/api/services/app/MaintenanceTask/Page", 'POST', params, 1,);

//维护管理--获取任务处理对象
api.GetObjectName = params => request.globalRequest("/api/services/app/MaintenanceTask/GetObjectName", 'GET', params, 1);

// 维护管理--维护队伍
api.ShowTeamData = params => request.globalRequest("/api/services/app/MaintenanceTeam/GetDetailData", 'GET', params, 1);

// 维护管理--设备
api.ShowEquipmentData = params => request.globalRequest("/api/services/app/ArchvieEquipment/Page", 'POST', params, 1);

//维护管理--维护任务详情
api.DetailData = params => request.globalRequest("/api/services/app/MaintenanceTask/Get", 'GET', params, 1);

//维护管理--接收任务
api.ReciveTask = params => request.globalRequest("/api/services/app/MaintenanceTask/ReciveTask", 'POST', params, 2);

//维护管理--处理任务
api.DoMaintenanceTask = params => request.globalRequest("/api/services/app/MaintenanceTask/DoMaintenanceTask", 'POST', params, 1);

//处理任务--获取所有备品备件
api.GetArchvieSparePart = params => request.globalRequest("/api/services/app/ArchvieSparePart/GetArchvieSparePart", 'GET', params, 1);

//处理任务--获取所有物资名称
api.getAllSupplyData = params => request.globalRequest("/api/services/app/ArchiveSupply/GetArchiveSupply", 'GET', params, 1);

//处理任务--生成规程
api.MaintenanceRuleCreate = params => request.globalRequest("/api/services/app/MaintenanceRule/Create", 'POST', params, 1);

//处理任务--获取详情
api.TaskDetailGet = params => request.globalRequest("/api/services/app/MaintenanceTask/GetDealInfoByTaskId", 'GET', params, 3);

//首页值班轮播
api.GetDutyWheels = params => request.globalRequest("/api/services/app/Frame/GetDutyWheels", 'GET', params, 1);


//首页任务完成情况
api.GetTaskStatusNum = params => request.globalRequest("/api/services/app/Frame/GetTaskStatusNum", 'GET', params, 1);
export default api






